Tootsville::Infinity-Get-Mail-In-Box

Function

Infinity-Get-Mail-In-Box names a function, with lambda list (D U R):

Get a listing of messages in an SMS mailbox.

Lisp GET-MAIL-IN-BOX = JSON getMailInBox

Usage

{ [ from: INDEX ],
  [ limit: COUNT ] }

Examples

{}

{ from: 10, limit: 10 }

{ from: 0, limit: 100 }

{ limit 100 }

{ from: 10 }

When specified, from is the index of the first message to return, and limit is the number of messages to return.

limit defaults to 100 messages if not supplied.

200 OK

Returns an object named mail. Keys under mail are indices. Each message consists of

id
An UUID for the message
from
The sender's name
to
The recipient's name
subject
No longer used; always ""
sentTime
The date and time sent
readTime
The date and time first (previously) retrieved by the client. Messages will be marked as read “now” when retrieved, but only after they are retrieved for the first time.
body
The contents of the message.

416 Request Range Not Satisfiable

The from value exceeded the maximum message in the Toot's inbox.

Changes from 1.2 to 2.0

Message ID's are now UUID's. Messages no longer have subjects.

Formerly Proprietary Extension

This command was formerly a proprietary extension for Tootsville.com and has now been re-created for the AGPL version of Romance.

File

Defined in file src/infinity/tootsville-commands.lisp.